﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Crank.Core
{
    public abstract class Sql2005Scripter
    {
        protected string ForeignKeyName(LinkDef link)
        {
            return String.Format("FK_{0}_{1}{2}{3}",
                    link.LHS.Name,
                    link.RHS.Name,
                    link.Detail.Name.Length > 0 ? "_" : "",
                    link.Detail.Name);

        }
    }
}
